package com.ftg.product.kucun.service;

import com.ftg.product.kucun.mapper.ChukuMapper;
import com.ftg.product.kucun.pojo.Chuku;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zwl
 * Create on 2019/5/7 13:46
 * function
 */
@Service
public class ChukuService {
    @Autowired
    ChukuMapper cm;
    public List<Chuku> showall(Chuku pageH){
        System.out.println(pageH+"service");
        List<Chuku> list =cm.showall(pageH);
        // pageH.setData(list);
        return list;
    }
    public int insert(Chuku chuku){
        return cm.insert(chuku);
    }
    public int update(Chuku chuku){
        return cm.update(chuku);
    }
    public  int delete(String cid){
        return cm.delete(cid);
    }
    public List<Chuku> show(Chuku pageH){
        System.out.println(pageH+"service");
        List<Chuku> list = cm.show(pageH);
        // pageH.setData(list);
        return list;
    }
}
